﻿package com.peternitsch.hivedemo.states
{
	import com.peternitsch.hivedemo.data.HiveDemoData;
	import flash.display.Shape;
	
	import org.hive.managers.plugin.LayoutManager;
	import org.hive.managers.StateManager;
	import org.hive.state.*
	import org.hive.sequence.*
	
	public class Main extends State implements IState
	{
		
		public override function create():ActionSequence
		{
			//________________________________________________________________________ INIT MANAGERS
			LayoutManager.init();

			//________________________________________________________________________ SEQUENCE
			var createSequence:ActionSequence = new ActionSequence( "Main::createSequence" );
			createSequence.push( new SequenceFunction(StateManager, StateManager.switchState, new BoxState()) );
			
			return createSequence;
		}

		
		public override function close():CloseSequence
		{
			var closeSequence:CloseSequence = new CloseSequence( "Main::closeSequence" );
			
			return closeSequence;
		}
		
	}
	
}
